\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}


\usepackage{ae,aecompl}
\usepackage{pslatex}
\usepackage{epsfig}
\usepackage{geometry}
\usepackage{url}
\usepackage{textcomp}
\usepackage{ae}
\usepackage{subfig}
\usepackage{indentfirst}
\usepackage{textcomp}
\usepackage{color}
\usepackage{setspace}
\usepackage{verbatim}
\usepackage{hyperref}

% Gráficos
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\usepgfplotslibrary{groupplots}

\usepackage{hyperref}
\hypersetup{
    colorlinks,%
    citecolor=black,%
    filecolor=black,%
    linkcolor=blue,%
    urlcolor=blue
}

\usepackage[compact]{titlesec}
\titlespacing{\section}{0pt}{*0}{*0}
\titlespacing{\subsection}{0pt}{*0}{*0}
\titlespacing{\subsubsection}{0pt}{*0}{*0}

% Definindo as margens para 2cm e o espaçamento entre linhas para 1.5
% Relatório parcial deve ter espaçamento simples
% \linespread{1.5}

\geometry{ 
  a4paper,	% Formato do papel
  tmargin=30mm,	% Margem superior
  bmargin=30mm,	% Margem inferior
  lmargin=20mm,	% Margem esquerda
  rmargin=20mm,	% Margem direita
  footskip=10mm	% Espaço entre o rodapé e o fim do texto
}
\renewcommand{\thetable}{\Roman{table}}
\newcommand{\x} {$\bullet$}


\begin{document}

\vspace{-5mm}

\begin{tikzpicture}
  \begin{axis}[
    ylabel=taxa,
    xlabel=Tempo,
    height=14cm,
    width=14cm,
    grid=major,
    ytick = data,
ytick ={1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12},
yticklabels={1,2,5.5,6,9,11,12,18,24,36,48,54},
legend style={at={(0.5,-0.15)},
anchor=north,legend columns=-1}]    
    \addplot[mesh]
    table[x=t,y=rate] {coraPlot};
  
    \legend{ Algoritmo Cora - Desvio mínimo 40 máximo 120 t=100ms}
  \end{axis}
\end{tikzpicture}

\centering
\begin{tabular}{lllll}
CORA ORIGNAL & t 100ms & dev min 40 & max 120 &     \tabularnewline
TAXA & Throuput EWMA & ENVIADOS & TENTATIVAS & Porcentagem   \tabularnewline
\hline
1 & 0.9 & 18 & 35 & 51.43\% \tabularnewline
2 & 1.9 & 4 & 6 & 66.67\% \tabularnewline
5.5 & 5 & 2 & 2 & 100.00\% \tabularnewline
6 & 5.1 & 10 & 11 & 90.91\% \tabularnewline
9 & 6.3 & 1701 & 1727 & 98.49\% \tabularnewline
11 & 6.6 & 1362 & 1399 & 97.36\% \tabularnewline
12 & 11.1 & 36 & 36 & 100.00\% \tabularnewline
18 & 0 & 0 & 0 & 0.00\% \tabularnewline
24 & 15.6 & 25 & 29 & 86.21\% \tabularnewline
36 & 30.4 & 470 & 484 & 97.11\% \tabularnewline
48 & 30 & 1927 & 1973 & 97.67\% \tabularnewline
54 & 35.5 & 3346 & 3456 & 96.82\%\tabularnewline
TOTAL & 23.7678641624809 & 8901 & 9158 & 97.19\% \tabularnewline
\end{tabular}
\begin{tabular}{llll}
 média de throughput & total enviado & total tentativas & total enviado/tentativas   \tabularnewline
\hline
 23.76 & 8901 & 9158 & 97.19\% \tabularnewline
 \end{tabular}


\end{document}
